import request from '@/router/axios';


// 传感器设置
export const iotdeviceSensorThresholdSet = (row) => {
  return request({
    url: '/api/uic-system/iotdevice/sensor/threshold/set',
    method: 'post',
    data: row
  })
}

// 传感器标定
export const iotdeviceStandardSet = (row) => {
  return request({
    url: '/api/uic-system/iotdevice/standard/set',
    method: 'post',
    data: row
  })
}

// 传感器设置
export const iotdeviceSensorHeightSet = (row) => {
  return request({
    url: '/api/uic-system/iotdevice/sensor/height/set',
    method: 'post',
    data: row
  })
}

// 参数设置
export const iotdeviceParamsSet = (row) => {
  return request({
    url: '/api/uic-system/iotdevice/params/set',
    method: 'post',
    data: row
  })
}


// 主板详情
export const iotdeviceDetail = (data) => {
  return request({
    url: '/api/uic-system/iotdevice/detail',
    method: 'get',
    params: {
      ...data
    }
  })
}


// 主板分页列表
export const iotdevicePage = (data) => {
  return request({
    url: '/api/uic-system/iotdevice/page',
    method: 'get',
    params: {
      ...data
    }
  })
}


// 新增或修改主板
export const iotdeviceSubmit = (row) => {
  return request({
    url: '/api/uic-system/iotdevice/submit',
    method: 'post',
    data: row
  })
}


// 删除主板
export const iotdeviceRemove = (row) => {
  return request({
    url: '/api/uic-system/iotdevice/remove',
    method: 'post',
    data: row
  })
}

